﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace Qcy.Jshj.Web.Models
{
    public class JshjDataContext : DbContext
    {
        public JshjDataContext()
            : base("Jshj")
        {
        }

        public DbSet<ProductCategory> ProductCategory { get; set; }
        public DbSet<Product> Product { get; set; }
        public DbSet<CompanyInfo> CompanyInfo { get; set; }
        public DbSet<Article> Article { get; set; }
        public DbSet<Order> Order { get; set; }
        public DbSet<Link> Link { get; set; }
    }

    public class JshjInitializer : DropCreateDatabaseIfModelChanges<JshjDataContext>
    {
        protected override void Seed(JshjDataContext context)
        {
            base.Seed(context);
        }
    }
}